package com.example.service;

import com.example.dto.StuFindDto;
import com.example.dto.StuInsertDormitoryByZhiYe;
import com.example.pojo.PageBean;
import com.example.pojo.User;

public interface UserService {
    void addUser(User user);

    User findUser(String name);

    void updateUser(User user);

    User getUserInfo(Integer id);

    void deleteUser(Integer id);

    PageBean PageList(Integer pageNum, Integer pageSize,String name,String dormitoryId,String categoryName);

    void addDormitory(StuInsertDormitoryByZhiYe stuInsertDormitoryByZhiYe);

    User findStu(StuFindDto stuFindDto);

    PageBean findPeo(Integer pageNum, Integer pageSize, String dormitoryId, String categoryName);

    User findByStuName(String stuName);
}
